home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_1050 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  442 b   |  18 lines

  1. on(release){
  2.    if(_root.magRune >= 10 && _root.exploRune >= 15 && _root.fireRune >= 10 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 10;
  5.       _root.exploRune -= 15;
  6.       _root.fireRune -= 10;
  7.       this.timey.timer = 0;
  8.       this.timey.timeIt = 0.02;
  9.       this.timey._visible = true;
  10.       _root.nukeN._visible = true;
  11.       _root.nukeN.play();
  12.    }
  13.    else
  14.    {
  15.       _root.messy = "Not enough Runes";
  16.    }
  17. }
  18.